package cn.zhuama.org.service.impl;

import cn.zhuama.basic.service.impl.BaseServiceImpl;
import cn.zhuama.org.domain.SystemDictionary;
import cn.zhuama.org.mapper.SystemdictionaryMapper;
import cn.zhuama.org.service.ISystemDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class SystemDictionaryServiceImpl extends BaseServiceImpl<SystemDictionary> implements ISystemDictionaryService {
    @Autowired
    private SystemdictionaryMapper systemdictionaryMapper;

    @Override
    public List<SystemDictionary> londType(Long type) {
        return systemdictionaryMapper.selectByType(type);
    }

    @Override
    public void deleteType(Long id) {
         systemdictionaryMapper.deleteType(id);
    }
}